<div id="paper-show">
<table border=0 cellPadding=0 cellSpacing=0>
 <tbody>
  <tr>
  <td class="attribute">Title:</td>
  <td class="value"><%=h @paper.title %></td>
  </tr>

  <tr> 
          <td colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
 
  <tr>
  <td class="attribute">Author:</td>
  <td class="value"><%=h @paper.authors*"  |  " %></td>
  </tr>

  <tr> 
          <Td colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 

  <tr>
  <td class="attribute">Publisher:</td>
  <td class="value"><%=h @paper.send('publisher') %></td>
  </tr>


  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 

<tr>
  <td class="attribute">Publish time:</td>
  <td class="value"><%=h @paper.send('publish_time') %></td>
  </tr>

  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 

<tr> 
<td class="attribute">ISBN:</td>
 <td class="value"><%=h @paper.send('ISBN') %></td>
  </tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">Page info:</td>
  <td class="value"><%=h @paper.send('page_info') %></td>
  </tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">Keyword</td>
  <td class="value"><%=h @paper.keywords*"  |  " %></td>
  </tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">Download url:</td>
  <td class="value"><%=h @paper.send('download_url') %></td>
  </tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">Abstraction:</td>
  <td class="value"><%=h @paper.send('abstract') %></td>
  </tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">Summary:</td>
  <td class="value"><%=h @paper.send('uploader_summary') %></td>
  </tr>
  <tr> 
          <TD colSpan=2 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
<tr>
  <td class="attribute">DownLoad</td>
  <td class="imagetable" >
    <span class="item">
      <img src="/images/paper.jpg">&nbsp;&nbsp;&nbsp;<%= link_to 'Oraginal',:action=>"download_file",:filename=>@paper.save_url %>
    </span>
<% if !@paper.translation_url.blank? %>
    <span class="item">
      <img src="/images/doc.jpg">&nbsp;&nbsp;&nbsp;<%= link_to 'Translation',:action=>"download_file",:filename=>@paper.save_url %>
    </span>
<% end %>
<% if !@paper.ppt_url.blank? %>
    <span class="item">
      <img src="/images/ppt.jpg">&nbsp;&nbsp;&nbsp;<%= link_to 'PPT',:action=>"download_file",:filename=>@paper.save_url %>
    </span>
<% end %>
</td>
  </tr>
<tr>
  <td colspan="2" class="actiontable"><% if @paper.user_id==session[:user_id] %>
<%= link_to 'Edit', :action => 'edit', :id => @paper %> |
<%= link_to 'Delete', :action => 'delete', :id => @paper %> |
<% end %>
<%= link_to 'Back', :action => 'list' %></td>
</tr>
  <tr> 
          <TD colSpan=3 height="25" width="700"><IMG alt=---------- border=0 height=1  
            src="/images/beige.gif"  
            vspace=7 width="700">
         </td>
  </tr> 
</tbody>
</table>
</div>

<div class="comments">
    <h4><%=@paper.comments.length%>  <a href="#" onclick="document.getElementById('comment_content').focus();return false;">Comments</a></h4>
    <a id="comments" name="comments"></a>
<%for comment in @paper.comments%>
    <h5><%=comment.user.account%> <%=comment.modify_time.to_s(:db) %></h5>
<div><%=comment.content%></div>
<% end %>
</div>
<div id="comment_editor">
			<% form_for :comment ,:url => { :action => "addcomment" }do |form| %>
				<h2>Comment</h2>
                                <%=form.hidden_field :paper_id,:value=>@paper.id%>
				<p>
					<%=form.text_area  :content,:rows=>5,:cols=>75%>
				</p>
				<p class="act">
					<%= submit_tag "send", :class => "submit" %>
				</p>
                                
 <% end %> 
</div>